﻿<Window x:Class="TfsBuildManager.Views.TriggerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:TfsBuildManager.Controls;assembly=TFSBuildManager.Controls" 
        xmlns:Views="clr-namespace:TfsBuildManager.Views" 
        WindowStartupLocation="CenterScreen"
        Title="Change Build Trigger" 
        Height="289" Width="562" MinHeight="18" MinWidth="100" ResizeMode="NoResize" Background="#FFF6F6F6" Icon="Graphics/AppIcon.ico">
    <Grid Name="Grid1" Margin="0,10,0,1">
        <Grid.Resources>
            <Style TargetType="{x:Type GridViewColumnHeader}">
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                <Setter Property="Margin" Value="5,0,0,0"/>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,0,5">
            <Button IsDefault="True" Name="btnOK" Margin="5" Padding="20,3,20,3" Click="OnOK">OK</Button>
            <Button IsDefault="False" IsCancel="True" Name="btnCancel" Margin="5" Padding="15,3,15,3" Click="OnCancel">Cancel</Button>
        </StackPanel>
        <RadioButton Content="Manual - Check-ins do not trigger a new build" Height="16" HorizontalAlignment="Left" Margin="16,10,0,0" Name="rdoTriggerManual" VerticalAlignment="Top" IsChecked="{Binding Manual}" />
        <Label Content="minutes." Height="28" HorizontalAlignment="Left" Margin="314,101,0,0" VerticalAlignment="Top" Name="labelMinutes" IsEnabled="False"/>
        <TextBox Height="22" HorizontalAlignment="Left" Margin="223,104,0,0" Name="textboxMinutes" VerticalAlignment="Top" Width="74" Text="{Binding SetDropLocation}" IsEnabled="False" MaxLength="4" PreviewTextInput="textboxMinutes_PreviewTextInput"/>
        <RadioButton Content="Continuous Integration - Build each check-in" Height="16" HorizontalAlignment="Left" Margin="16,43,0,0" x:Name="rdoTriggerContinuousIntegration" VerticalAlignment="Top"/>
        <RadioButton Content="Rolling builds - accumulate check-ins until prior build finishes" Height="16" HorizontalAlignment="Left" Margin="16,75,0,0" x:Name="rdoTriggerRolling" VerticalAlignment="Top" Checked="rdoTriggerRolling_Checked" Unchecked="rdoTriggerRolling_Unchecked"/>
        <RadioButton Content="Gated Check-in - accept check-ins only if they submitted changes merge and build successfully" Height="16" HorizontalAlignment="Left" Margin="16,134,0,0" x:Name="rdoTriggerGated" VerticalAlignment="Top" Checked="rdoTriggerGated_Checked" Unchecked="rdoTriggerGated_Unchecked"/>
        <CheckBox Content="Build no more then every" Name="checkboxRolling" HorizontalAlignment="Left" Margin="54,107,0,0" VerticalAlignment="Top" IsEnabled="False"/>
        <Label Content="submissions." Height="28" HorizontalAlignment="Left" Margin="314,162,0,0" x:Name="labelSubmissions" VerticalAlignment="Top"  IsEnabled="False"/>
        <TextBox Height="22" HorizontalAlignment="Left" Margin="223,165,0,0" x:Name="textboxSubmissions" VerticalAlignment="Top" Width="74" Text="{Binding SetDropLocation}" IsEnabled="False" MaxLength="4" PreviewTextInput="textboxSubmissions_PreviewTextInput"/>
        <CheckBox Content="Merge and build up to" HorizontalAlignment="Left" Name="checkboxGated" Margin="54,168,0,0" VerticalAlignment="Top" IsEnabled="False"/>
    </Grid>

</Window>
